package org.grow.ceto.dao;

import org.grow.ceto.entity.Player;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: xwg
 * @CreateDate: 21-8-25
 */


public interface PlayerDao extends JpaRepository<Player,Integer> {

    Player findByPlayerCode(String code);
    @Transactional
    void deleteByPlayerCode(String code);
    List<Player> findByNicknameLike(String nicknameSml);
}
